﻿using blackhouse.BlackApart.Business.Apartments;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace blackhouse.StareKino.Web {
    public class ApartmentGallery : List<IApartmentPhoto> {

        public ApartmentGallery(IApartmentGroup group) {
            this.Add(group.MainPhoto);
            this.AddRange(group.GetAllPhotos().OrderBy(p => p.Category).ThenBy(p => p.Sort));
        }

    }
} 